package stu;

import javax.xml.crypto.Data;
import java.math.BigInteger;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.Instant;
import java.util.Calendar;
import java.util.Date;
import java.util.Arrays;

/**
 * @author small瑞
 */
public class StuMayDay18 {
    public static void main(String[] args) throws ParseException {
        String s = "傻狗";
        String ss = "dasdddaasdccccc";
        String ans = s.concat(ss);
        System.out.println(ans);
        System.out.println(s.contains("s"));
        System.out.println(Arrays.toString(s.getBytes()));
        System.out.println(s.repeat(55));
        StringBuffer sb = new StringBuffer(ss);
        Date date = new Date();
        Runtime run = Runtime.getRuntime();
        BigInteger bb = new BigInteger("846546546546546151232355412");
        System.out.println(date.getTime());
        Calendar cur =Calendar.getInstance();
        System.out.println(cur.getTime());
        Date date1 = new Date(cur.get(Calendar.MILLISECOND));
        System.out.println(cur.get(Calendar.MILLISECOND));
        java.sql.Timestamp ttt = new java.sql.Timestamp(System.currentTimeMillis());
        System.out.println(ttt);
        String parran = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX";
        SimpleDateFormat format = new SimpleDateFormat(parran);
        long sss = System.currentTimeMillis();
        String ann = String.valueOf(sss);
        System.out.println(format.parse(ann));


    }
}
